using System;
using System.Data;
using System.Collections;

namespace APP.QUANLY.Entity
{
     /// <summary>
     /// Summary description for THONGTINTHE.
     /// </summary>
     public class THONGTINTHE
    {
              private string _MATHE;
      private string _TEN;
      private decimal _TUMUC;
      private decimal _DENMUC;
      private decimal _TILEGIAMGIA;
      private bool _ISUSE;
      private bool _ISDELETE;
      private QUANLYTHETHEOKHACHHANGList _listQUANLYTHETHEOKHACHHANG;
        private bool isExisting;
        #region Properties
        public bool IsExisting
        {
              get{return isExisting;}
              set{isExisting = value;}
        }
		      public bool IsMATHENullable
      { get { return false;  } }
      public string MATHE
      {
         get { return _MATHE; }
         set { _MATHE = value; }
      }
      public bool IsTENNullable
      { get { return true;  } }
      public string TEN
      {
         get { return _TEN;  }
         set { _TEN = value; }
      }
      public bool IsTUMUCNullable
      { get { return true;  } }
      public decimal TUMUC
      {
         get { return _TUMUC;  }
         set { _TUMUC = value; }
      }
      public bool IsDENMUCNullable
      { get { return true;  } }
      public decimal DENMUC
      {
         get { return _DENMUC;  }
         set { _DENMUC = value; }
      }
      public bool IsTILEGIAMGIANullable
      { get { return true;  } }
      public decimal TILEGIAMGIA
      {
         get { return _TILEGIAMGIA;  }
         set { _TILEGIAMGIA = value; }
      }
      public bool IsISUSENullable
      { get { return true;  } }
      public bool ISUSE
      {
         get { return _ISUSE;  }
         set { _ISUSE = value; }
      }
      public bool IsISDELETENullable
      { get { return true;  } }
      public bool ISDELETE
      {
         get { return _ISDELETE;  }
         set { _ISDELETE = value; }
      }
public QUANLYTHETHEOKHACHHANGList QUANLYTHETHEOKHACHHANGList 
{ 
	get { return _listQUANLYTHETHEOKHACHHANG; }
	set { _listQUANLYTHETHEOKHACHHANG = value;}
}

        #endregion

        #region Constructors
        public THONGTINTHE()
        {
            Reset();
        }
        public THONGTINTHE(THONGTINTHE obj)
        {
            	this._MATHE = obj.MATHE;
	this._TEN = obj.TEN;
	this._TUMUC = obj.TUMUC;
	this._DENMUC = obj.DENMUC;
	this._TILEGIAMGIA = obj.TILEGIAMGIA;
	this._ISUSE = obj.ISUSE;
	this._ISDELETE = obj.ISDELETE;
        }
        #endregion

        public void Reset()
        {
                     _MATHE = EmptyValues.v_string;
         _TEN = EmptyValues.v_string;
         _TUMUC = EmptyValues.v_decimal;
         _DENMUC = EmptyValues.v_decimal;
         _TILEGIAMGIA = EmptyValues.v_decimal;
         _ISUSE = EmptyValues.v_bool;
         _ISDELETE = EmptyValues.v_bool;
	_listQUANLYTHETHEOKHACHHANG = null;
        }

         
        #region Hidden

        /*
        private void readProperties(IDataReader reader)
        {
            try
            {
                                if(!(reader["MATHE"] is DBNull))
		{
			obj.MATHE = (string)reader["MATHE"];
		}
                if(!(reader["TEN"] is DBNull))
		{
			obj.TEN = (string)reader["TEN"];
		}
                if(!(reader["TUMUC"] is DBNull))
		{
			obj.TUMUC = (decimal)reader["TUMUC"];
		}
                if(!(reader["DENMUC"] is DBNull))
		{
			obj.DENMUC = (decimal)reader["DENMUC"];
		}
                if(!(reader["TILEGIAMGIA"] is DBNull))
		{
			obj.TILEGIAMGIA = (decimal)reader["TILEGIAMGIA"];
		}
                if(!(reader["ISUSE"] is DBNull))
		{
			obj.ISUSE = (bool)reader["ISUSE"];
		}
                if(!(reader["ISDELETE"] is DBNull))
		{
			obj.ISDELETE = (bool)reader["ISDELETE"];
		}
//            _MATHE = (reader["MATHE"] is DBNull)?DalTools.EmptyValues.v_string:(string)reader["MATHE"];
//            _TEN = (reader["TEN"] is DBNull)?DalTools.EmptyValues.v_string:(string)reader["TEN"];
//            _TUMUC = (reader["TUMUC"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["TUMUC"];
//            _DENMUC = (reader["DENMUC"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["DENMUC"];
//            _TILEGIAMGIA = (reader["TILEGIAMGIA"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["TILEGIAMGIA"];
//            _ISUSE = (reader["ISUSE"] is DBNull)?DalTools.EmptyValues.v_bool:(bool)reader["ISUSE"];
//            _ISDELETE = (reader["ISDELETE"] is DBNull)?DalTools.EmptyValues.v_bool:(bool)reader["ISDELETE"];
            }
            catch (Exception ex)
            {
                throw new DalException("Failed to read properties from DataReader.", ex);
            }
        } 
        */

        #endregion


        public void Fill(string MATHE, string TEN, decimal TUMUC, decimal DENMUC, decimal TILEGIAMGIA, bool ISUSE, bool ISDELETE)
        {
                     this._MATHE = MATHE;
         this._TEN = TEN;
         this._TUMUC = TUMUC;
         this._DENMUC = DENMUC;
         this._TILEGIAMGIA = TILEGIAMGIA;
         this._ISUSE = ISUSE;
         this._ISDELETE = ISDELETE;
        }
    }
}